package com.sitech.ibnms.c3p.mappers;

import com.sitech.ibnms.c3p.domain.ResourceAccount;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * Created by liujhc on 7/21.
 */
public interface ResourceAccountMapper {
    @Cacheable("longTerm")
    List<ResourceAccount> findByIdList(@Param("resourceIds") List<String> resourceIds);

    @Cacheable("longTerm")
    ResourceAccount findById(@Param("resourceId") String resourceId);

    @Cacheable("longTerm")
    ResourceAccount findByUnitIdList(@Param("unit_id") String unit_id);

    @Cacheable("longTerm")
    ResourceAccount findByIp(@Param("ip") String ip);
}
